home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funcext.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  565 b   |  26 lines

  1. /*
  2. \funcref{fun\_c\_ext}{void fun\_c\_ext ()}
  3.     {}
  4.     {}
  5.     {change\_ext(), newvar()}
  6.     {fun\_c\_path(), fun\_c\_name()}
  7.     {funcext.c}
  8.     {
  9.  
  10.         The last pushed string is taken as a file name. The extension is
  11.         converted to the one but last pushed string. A new {\em e\_str}
  12.         variable is created holding the new string and is returned via {\em
  13.         reg}.
  14.  
  15.     }
  16. */
  17.  
  18. #include "icm-exec.h"
  19.  
  20. void fun_c_ext ()
  21. {
  22.     reg = newvar (e_str);
  23.     reg.vu.i->ls.str =
  24.         change_ext (stack [sp].vu.i->ls.str, stack [sp - 1].vu.i->ls.str);
  25. }
  26.